Skip to content

fix(tests): Apply more fixes for Windows Integration test flakiness#266

Merged
daffinito merged 1 commit into
mainfrom
daff/fix-more-flakiness
Jul 14, 2026
Merged

fix(tests): Apply more fixes for Windows Integration test flakiness#266
daffinito merged 1 commit into
mainfrom
daff/fix-more-flakiness

Conversation

@daffinito

Copy link
Copy Markdown
Contributor

Summary

The InfrastructureVersionPresentWindows integration test has been failing on and off. It exercises Infra/Agent/Version, which reports Info only after calling the GitHub API to check how old the installed agent is. That call is unauthenticated and rate-limited to 60 requests/hour per IP, and the Windows runners share IPs, so the call frequently gets throttled. When it does, the task returns Warning instead of Info and the test fails. Re-running the same commit passes, which is what pointed to the rate limit rather than a real regression.

Fix

Instead of depending on that network call, the test now hands the release date directly to the task via the -o override the CLI already supports. Nothing changes in production: when the override isn't set, the task calls GitHub exactly as before. The date the test passes in is generated from the current date at image-build time, so it always looks recent and won't silently rot into a failure a year out the way a hardcoded date would.

The version-age logic is already unit-tested, so this doesn't drop meaningful coverage. The integration test goes back to verifying what it's actually for: that the installed agent binary is found and its version is read end to end.

@mscotto-nr mscotto-nr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@daffinito daffinito merged commit 47eba1d into main Jul 14, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants